import request from '@/utils/request'

// 查询排课信息列表
export function listPlanClass(query) {
  return request({
    url: '/course/planClass/list',
    method: 'get',
    params: query
  })
}

// 查询排课信息详细
export function getPlanClass(id) {
  return request({
    url: '/course/planClass/view/' + id,
    method: 'get'
  })
}

// 新增排课信息
export function addPlanClass(data) {
  return request({
    url: '/course/planClass/add',
    method: 'post',
    data: data
  })
}

// 修改排课信息
export function updatePlanClass(data) {
  return request({
    url: '/course/planClass/update',
    method: 'put',
    data: data
  })
}

export function updatePlanClassKjx(data) {
  return request({
    url: '/course/planClass/updateKjx',
    method: 'put',
    data: data
  })
}

// 删除排课信息
export function delPlanClass(id) {
  return request({
    url: '/course/planClass/delete/' + id,
    method: 'delete'
  })
}
